Empty a list DBE filled using skip list

I want a list DBE to be made empty before I fill it again using a skip list. The function I use to fill the DBE list is

 

void insertToListDBEFromSkipList ( DBE listDBE, Skip skip_List, int &skip_no,string element)
 {
         insert(listDBE, skip_no, element)
        put(skip_list, skip_no++, element)
  }

When I am trying to use the "empty(DBE lst)" before calling this function, the list goes empty and does not fill in again. Any idea on why is this happening?


CAUK77 - Tue May 24 11:00:51 EDT 2016

Re: Empty a list DBE filled using skip list
Costas..Aravidis - Wed May 25 01:59:15 EDT 2016

You need to check your code again.

The code that you have written here does not indicate that you fill the list with elements from the skip.

In general after you empty the list you can fill it again with items.